package com.ponhu.ea2.stockcenter.provider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 仓库库存变动配置表
 * @TableName ph_stock_inventory_warehouse_change_settings
 */
@TableName(value ="ph_stock_inventory_warehouse_change_settings")
@Data
public class StockWarehouseChangeSettings implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 记录渠道(1: OMS; 2: WMS)
     */
    private Integer recordChannel;

    /**
     * 动作类型 (1开头: OMS动作; 2开头: WMS动作; 3开头: 采购中心动作; )
     */
    private Integer actionType;

    /**
     * 实际库存数(0:不动；1:增加；2:扣减)
     */
    private Integer realStockAction;

    /**
     * 可用库存数(0:不动；1:增加；2:扣减)
     */
    private Integer availableStockAction;

    /**
     * 锁定库存数(0:不动；1:增加；2:扣减)
     */
    private Integer lockedStockAction;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态(1:启用；2:未启用)
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}